<?php $post= $this->get('post');?>
<form method="post" action="<?php _actionUrl($this)?>" onsubmit="return ajax_form(this)" id="task-form" enctype="multipart/form-data">
<input type="hidden" value="<?php _e($post['ID']);?>" name="ID"/>
<div class="form-message"></div>
<table width="100%" border="0" cellpadding="5">
	<tr>
		<td>
			<textarea class="x-text x-editor" style="width:500px;height:80px" name="content"><?php _e($post['content']);?></textarea>
			<?php foreach( $this->get('files') as $file ):?>
			<div class='x-file-info'>
				<input checked type='checkbox' name='files[]' value='<?php _e($file['ID']);?>'/>
				<a href="<?php _ctrUrl($this);?>/File?ID=<?php _e($file['ID']);?>" target="_blank"><?php _e($file['filename']);?> <?php _e($file['size']);?> KB	</a>
			</div>
			<?php endforeach;?>			
			<div class="x-files" url="<?php _baseUrl();?>/Task/Comment/Upload?ID=<?php _e($post['ID']);?>"></div> 
		</td>
	</tr><tr>	
	<td align="center">
		<?php _e(tpl_button_add('Cập nhật'));?>
		<a class="x-button x-fresh" onclick="remove_frame(this)">Hủy bỏ</a>
	</td>
	</tr>
</table>
</form>